#!/bin/bash

# Shadowsocks 安装脚本 (不生成配置文件)

# 更新包列表并安装 EPEL 源和 Shadowsocks
sudo yum install -y epel-release
sudo yum update -y
sudo yum install -y shadowsocks-libev

# 设置 Shadowsocks 服务自启动并启动服务
sudo systemctl enable shadowsocks-libev
sudo systemctl start shadowsocks-libev

echo "
Shadowsocks server has been installed, but no configuration file was created."
echo "You can run the Shadowsocks server using ss-server with command line arguments."
